﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ExtractFiles
{
    public abstract partial class HowtoParent : Form
    {
        private int currentPage;
        private int firstPage;
        private int maxPage;

        public HowtoParent()
        {
            InitializeComponent();
            this.howToSearchFilesPrevBtn.Enabled = false;
            this.howToSearchFilesNextBtn.Enabled = true;
            displayPage();
        }

        protected void howToSearchFilesCancelBtn_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        protected abstract void howToSearchFilesPrevBtn_Click(object sender, EventArgs e);

        protected abstract void howToSearchFilesNextBtn_Click(object sender, EventArgs e);

        protected void displayNormalPageControls()
        {
            this.howToSearchFilesPrevBtn.Enabled = true;
            this.howToSearchFilesNextBtn.Enabled = true;
        }

        protected void displayFirstPageControls()
        {
            this.howToSearchFilesPrevBtn.Enabled = false;
            this.howToSearchFilesNextBtn.Enabled = true;
        }

        protected void displayLastPageControls()
        {
            this.howToSearchFilesPrevBtn.Enabled = true;
            this.howToSearchFilesNextBtn.Enabled = false;
        }

        protected abstract void displayPage();
    }
}
